home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / HyperTalk / Stack Starter ß.976 / Stack Starter fl.976 / card_7889.txt < prev    next >
Encoding:
Text File  |  1988-08-03  |  15.1 KB  |  700 lines

  1. -- card: 7889 from stack: in.976
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2295
  5. -- name: multi-icon buttons
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: 8004
  11. -- rect: left=53 top=80 right=101 bottom=470
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 204
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: ‡Help  fiFirst  ŸPrev  €Home  ⁄Next  flLast  ‹Pop
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   get trunc(((item 1 of the clickloc) - (item 1 of the rect of me)) / (((item 3 of the rect of me) - (item 1 of the rect of me)) / 7))
  23.  
  24.   if it is 0 then
  25.     scroll D
  26.     doMenu "Help"
  27.   else if it is 1 then
  28.     scroll L
  29.     doMenu "First"
  30.   else if it is 2 then
  31.     scroll L
  32.     go this card
  33.     --go prev card
  34.   else if it is 3 then
  35.     scroll D
  36.     doMenu "Home"
  37.   else if it is 4 then
  38.     scroll R
  39.     go this card
  40.     --go next card
  41.   else if it is 5 then
  42.     scroll R
  43.     doMenu "Last"
  44.   else if it is 6 then
  45.     scroll U
  46.     pop card
  47.   end if
  48. end mouseUp
  49.  
  50.  
  51.  
  52. -- part 2 (field)
  53. -- low flags: 01
  54. -- high flags: 0004
  55. -- rect: left=55 top=116 right=151 bottom=320
  56. -- title width / last selected line: 0
  57. -- icon id / first selected line: 0 / 0
  58. -- text alignment: 0
  59. -- font id: 204
  60. -- text size: 12
  61. -- style flags: 0
  62. -- line height: 16
  63. -- part name: 
  64. ----- HyperTalk script -----
  65. on mouseUp
  66.   get trunc(((item 1 of the clickloc) - (item 1 of the rect of me)) / (((item 3 of the rect of me) - (item 1 of the rect of me)) / 7))
  67.  
  68.   if it is 0 then
  69.     scroll D
  70.     doMenu "Help"
  71.   else if it is 1 then
  72.     scroll L
  73.     doMenu "First"
  74.   else if it is 2 then
  75.     scroll L
  76.     go this card
  77.     --go prev card
  78.   else if it is 3 then
  79.     scroll D
  80.     doMenu "Home"
  81.   else if it is 4 then
  82.     scroll R
  83.     go this card
  84.     --go next card
  85.   else if it is 5 then
  86.     scroll R
  87.     doMenu "Last"
  88.   else if it is 6 then
  89.     scroll U
  90.     pop card
  91.   end if
  92. end mouseUp
  93.  
  94.  
  95.  
  96. -- part 3 (field)
  97. -- low flags: 01
  98. -- high flags: 0004
  99. -- rect: left=346 top=105 right=222 bottom=381
  100. -- title width / last selected line: 0
  101. -- icon id / first selected line: 0 / 0
  102. -- text alignment: 0
  103. -- font id: 204
  104. -- text size: 12
  105. -- style flags: 0
  106. -- line height: 16
  107. -- part name: 
  108. ----- HyperTalk script -----
  109. on mouseUp
  110.   get trunc(((item 2 of the clickloc) - (item 2 of the rect of me)) / (((item 4 of the rect of me) - (item 2 of the rect of me)) / 7))
  111.  
  112.   if it is 0 then
  113.     scroll L
  114.     doMenu "First"
  115.   else if it is 1 then
  116.     scroll L
  117.     go this card
  118.     --go prev card
  119.   else if it is 2 then
  120.     scroll D
  121.     doMenu "Home"
  122.   else if it is 3 then
  123.     scroll R
  124.     go this card
  125.     --go next card
  126.   else if it is 4 then
  127.     scroll R
  128.     doMenu "Last"
  129.   else if it is 5 then
  130.     scroll U
  131.     pop card
  132.   else if it is 6 then
  133.     scroll D
  134.     doMenu "Help"
  135.   end if
  136. end mouseUp
  137.  
  138.  
  139.  
  140. -- part 4 (field)
  141. -- low flags: 01
  142. -- high flags: 0004
  143. -- rect: left=388 top=105 right=222 bottom=472
  144. -- title width / last selected line: 0
  145. -- icon id / first selected line: 0 / 0
  146. -- text alignment: 0
  147. -- font id: 204
  148. -- text size: 12
  149. -- style flags: 0
  150. -- line height: 16
  151. -- part name: 
  152. ----- HyperTalk script -----
  153. on mouseUp
  154.   get trunc(((item 2 of the clickloc) - (item 2 of the rect of me)) / (((item 4 of the rect of me) - (item 2 of the rect of me)) / 7))
  155.  
  156.   if it is 0 then
  157.     scroll L
  158.     doMenu "First"
  159.   else if it is 1 then
  160.     scroll L
  161.     go this card
  162.     --go prev card
  163.   else if it is 2 then
  164.     scroll D
  165.     doMenu "Home"
  166.   else if it is 3 then
  167.     scroll R
  168.     go this card
  169.     --go next card
  170.   else if it is 4 then
  171.     scroll R
  172.     doMenu "Last"
  173.   else if it is 5 then
  174.     scroll U
  175.     pop card
  176.   else if it is 6 then
  177.     scroll D
  178.     doMenu "Help"
  179.   end if
  180. end mouseUp
  181.  
  182.  
  183.  
  184. -- part 5 (button)
  185. -- low flags: 00
  186. -- high flags: 8004
  187. -- rect: left=55 top=168 right=189 bottom=247
  188. -- title width / last selected line: 0
  189. -- icon id / first selected line: 0 / 0
  190. -- text alignment: 1
  191. -- font id: 204
  192. -- text size: 12
  193. -- style flags: 0
  194. -- line height: 16
  195. -- part name: ‡ fi Ÿ € ⁄ fl ‹
  196. ----- HyperTalk script -----
  197. on mouseUp
  198.   get trunc(((item 1 of the clickloc) - (item 1 of the rect of me)) / (((item 3 of the rect of me) - (item 1 of the rect of me)) / 7))
  199.  
  200.   if it is 0 then
  201.     scroll D
  202.     doMenu "Help"
  203.   else if it is 1 then
  204.     scroll L
  205.     doMenu "First"
  206.   else if it is 2 then
  207.     scroll L
  208.     go this card
  209.     --go prev card
  210.   else if it is 3 then
  211.     scroll D
  212.     doMenu "Home"
  213.   else if it is 4 then
  214.     scroll R
  215.     go this card
  216.     --go next card
  217.   else if it is 5 then
  218.     scroll R
  219.     doMenu "Last"
  220.   else if it is 6 then
  221.     scroll U
  222.     pop card
  223.   end if
  224. end mouseUp
  225.  
  226.  
  227.  
  228. -- part 6 (button)
  229. -- low flags: 00
  230. -- high flags: 2004
  231. -- rect: left=252 top=168 right=207 bottom=291
  232. -- title width / last selected line: 0
  233. -- icon id / first selected line: 6039 / 6039
  234. -- text alignment: 1
  235. -- font id: 204
  236. -- text size: 12
  237. -- style flags: 0
  238. -- line height: 16
  239. -- part name: 
  240. ----- HyperTalk script -----
  241. on mouseUp
  242.   get trunc(((item 2 of the clickloc) - (item 2 of the rect of me)) / (((item 4 of the rect of me) - (item 2 of the rect of me)) / 3))
  243.  
  244.   if it is 0 then
  245.     scroll L
  246.     doMenu "First"
  247.   else if it is 1 then
  248.     repeat until the mouseClick
  249.       scroll L
  250.       go this card
  251.       --go to prev card
  252.     end repeat
  253.   else if it is 2 then
  254.     scroll L
  255.     go this card
  256.     --go to prev card
  257.   end if
  258. end mouseUp
  259.  
  260.  
  261.  
  262. -- part 7 (button)
  263. -- low flags: 00
  264. -- high flags: 2004
  265. -- rect: left=297 top=168 right=207 bottom=337
  266. -- title width / last selected line: 0
  267. -- icon id / first selected line: 6038 / 6038
  268. -- text alignment: 1
  269. -- font id: 204
  270. -- text size: 12
  271. -- style flags: 0
  272. -- line height: 16
  273. -- part name: 
  274. ----- HyperTalk script -----
  275. on mouseUp
  276.   get trunc(((item 2 of the clickloc) - (item 2 of the rect of me)) / (((item 4 of the rect of me) - (item 2 of the rect of me)) / 3))
  277.  
  278.   if it is 0 then
  279.     scroll R
  280.     doMenu "last"
  281.   else if it is 1 then
  282.     repeat until the mouseClick
  283.       scroll R
  284.       go this card
  285.       --go next card
  286.     end repeat
  287.   else if it is 2 then
  288.     scroll R
  289.     go this card
  290.     --go next card
  291.   end if
  292. end mouseUp
  293.  
  294.  
  295. -- part 8 (button)
  296. -- low flags: 00
  297. -- high flags: 8004
  298. -- rect: left=55 top=209 right=230 bottom=193
  299. -- title width / last selected line: 0
  300. -- icon id / first selected line: 0 / 0
  301. -- text alignment: 1
  302. -- font id: 204
  303. -- text size: 12
  304. -- style flags: 0
  305. -- line height: 16
  306. -- part name: Ÿ Which Card? ⁄
  307. ----- HyperTalk script -----
  308. on mouseUp
  309.   if (item 1 of the clickloc) < (item 1 of loc of me) then
  310.     scroll L
  311.     go this card
  312.     --go prev card
  313.   else
  314.     scroll R
  315.     go this card
  316.     --go next card
  317.   end if
  318. end mouseUp
  319.  
  320.  
  321. -- part 9 (button)
  322. -- low flags: 00
  323. -- high flags: 8004
  324. -- rect: left=55 top=250 right=271 bottom=135
  325. -- title width / last selected line: 0
  326. -- icon id / first selected line: 0 / 0
  327. -- text alignment: 1
  328. -- font id: 204
  329. -- text size: 12
  330. -- style flags: 0
  331. -- line height: 16
  332. -- part name: Î Í Ï
  333. ----- HyperTalk script -----
  334. on mouseUp
  335.   get trunc(((item 1 of the clickloc) - (item 1 of the rect of me)) / (((item 3 of the rect of me) - (item 1 of the rect of me)) / 3))
  336.  
  337.   if it is 0 then
  338.     scroll L
  339.     go this card
  340.     --go prev card
  341.   else if it is 1 then
  342.     scroll D
  343.     doMenu "Home"
  344.   else if it is 2 then
  345.     scroll R
  346.     go this card
  347.     --go next card
  348.   end if
  349. end mouseUp
  350.  
  351.  
  352. -- part 10 (button)
  353. -- low flags: 00
  354. -- high flags: 0004
  355. -- rect: left=202 top=233 right=272 bottom=243
  356. -- title width / last selected line: 0
  357. -- icon id / first selected line: 4334 / 4334
  358. -- text alignment: 1
  359. -- font id: 204
  360. -- text size: 12
  361. -- style flags: 0
  362. -- line height: 16
  363. -- part name: Choose
  364. ----- HyperTalk script -----
  365. on mouseUp
  366.   put (item 1 of the clickLoc)-(item 1 of the rect of the target) into A
  367.   put (item 1 of the clickLoc)-(item 3 of the rect of the target) into B
  368.   put (item 2 of the rect of the target)-(item 2 of the clickLoc) into C
  369.   put (item 4 of the rect of the target)-(item 2 of the clickLoc) into D
  370.   put (item 1 of the clickLoc) - (item 1 of the Loc of me) into E
  371.   put (item 2 of the clickLoc) - (item 2 of the Loc of me) into F
  372.   if abs(E) < 4 then
  373.     if abs(F) < 4 then
  374.       repeat 2
  375.         repeat with i = 4332 to 4334
  376.           flash 1
  377.           set icon of me to i
  378.         end repeat
  379.       end repeat
  380.       wait 60
  381.       hide msg
  382.       exit mouseUp
  383.     end if
  384.   end if
  385.   if (A < abs(B)) then
  386.     if (abs(C) < D) then
  387.       set icon of me to 4331
  388.       set icon of me to 4334
  389.       scroll D
  390.       go this card
  391.       put "Go to the HomeCard"
  392.     else if (abs(C) > D) then
  393.       set icon of me to 4330
  394.       set icon of me to 4334
  395.       scroll R
  396.       go to this card
  397.       put "Go to the Next Card"
  398.     end if
  399.   end if
  400.   if (A > abs(B)) then
  401.     if (abs(C) < D) then
  402.       set icon of me to 4328
  403.       set icon of me to 4334
  404.       scroll L
  405.       go to this card
  406.       put "Go to the Prev Card"
  407.     else if (abs(C) > D) then
  408.       set icon of me to 4329
  409.       set icon of me to 4334
  410.       scroll U
  411.       go this card
  412.       put "Pop a Card"
  413.     end if
  414.   end if
  415.   wait 60
  416.   hide msg
  417. end mouseUp
  418.  
  419.  
  420. -- part 11 (button)
  421. -- low flags: 00
  422. -- high flags: 2004
  423. -- rect: left=252 top=233 right=272 bottom=291
  424. -- title width / last selected line: 0
  425. -- icon id / first selected line: 6037 / 6037
  426. -- text alignment: 1
  427. -- font id: 204
  428. -- text size: 12
  429. -- style flags: 0
  430. -- line height: 16
  431. -- part name: 
  432. ----- HyperTalk script -----
  433. on mouseUp
  434.   get trunc(((item 2 of the clickloc) - (item 2 of the rect of me)) / (((item 4 of the rect of me) - (item 2 of the rect of me)) / 3))
  435.  
  436.   if it is 0 then
  437.     scroll L
  438.     go this card
  439.     --go to prev card
  440.   else if it is 1 then
  441.     repeat until the mouseClick
  442.       scroll L
  443.       go this card
  444.       --go to prev card
  445.     end repeat
  446.   else if it is 2 then
  447.     scroll L
  448.     doMenu "First"
  449.   end if
  450. end mouseUp
  451.  
  452.  
  453.  
  454. -- part 12 (button)
  455. -- low flags: 00
  456. -- high flags: 2004
  457. -- rect: left=296 top=233 right=272 bottom=336
  458. -- title width / last selected line: 0
  459. -- icon id / first selected line: 6036 / 6036
  460. -- text alignment: 1
  461. -- font id: 204
  462. -- text size: 12
  463. -- style flags: 0
  464. -- line height: 16
  465. -- part name: 
  466. ----- HyperTalk script -----
  467. on mouseUp
  468.   get trunc(((item 2 of the clickloc) - (item 2 of the rect of me)) / (((item 4 of the rect of me) - (item 2 of the rect of me)) / 3))
  469.  
  470.   if it is 0 then
  471.     scroll R
  472.     go this card
  473.     --go next card
  474.   else if it is 1 then
  475.     repeat until the mouseClick
  476.       scroll R
  477.       go this card
  478.       --go next card
  479.     end repeat
  480.   else if it is 2 then
  481.     scroll R
  482.     doMenu "last"
  483.   end if
  484. end mouseUp
  485.  
  486.  
  487. -- part 13 (button)
  488. -- low flags: 00
  489. -- high flags: 8004
  490. -- rect: left=364 top=228 right=278 bottom=403
  491. -- title width / last selected line: 0
  492. -- icon id / first selected line: 4341 / 4341
  493. -- text alignment: 1
  494. -- font id: 204
  495. -- text size: 12
  496. -- style flags: 0
  497. -- line height: 16
  498. -- part name: Choose
  499. ----- HyperTalk script -----
  500. on mouseUp
  501.   put (item 1 of the clickLoc)-(item 1 of the rect of the target) into A
  502.   put (item 1 of the clickLoc)-(item 3 of the rect of the target) into B
  503.   put (item 2 of the rect of the target) - (item 2 of the clickLoc) - 7 into C
  504.   put (item 4 of the rect of the target) - (item 2 of the clickLoc) - 7 into D
  505.   put (item 1 of the clickLoc) - (item 1 of the Loc of me) into E
  506.   put (item 2 of the clickLoc) - (item 2 of the Loc of me) + 7 into F
  507.   if abs(E) < 4 then
  508.     if abs(F) < 4 then
  509.       repeat 2
  510.         repeat with i = 4339 to 4341
  511.           flash 1
  512.           set icon of me to i
  513.         end repeat
  514.       end repeat
  515.       wait 60
  516.       hide msg
  517.       exit mouseUp
  518.     end if
  519.   end if
  520.   if (A < abs(B)) then
  521.     if (abs(C) < D) then
  522.       set icon of me to 4338
  523.       set icon of me to 4341
  524.       scroll D
  525.       go this card
  526.       put "Go to the HomeCard"
  527.     else if (abs(C) > D) then
  528.       set icon of me to 4337
  529.       set icon of me to 4341
  530.       scroll R
  531.       go to this card
  532.       put "Go to the Next Card"
  533.     end if
  534.   end if
  535.   if (A > abs(B)) then
  536.     if (abs(C) < D) then
  537.       set icon of me to 4335
  538.       set icon of me to 4341
  539.       scroll L
  540.       go to this card
  541.       put "Go to the Prev Card"
  542.     else if (abs(C) > D) then
  543.       set icon of me to 4336
  544.       set icon of me to 4341
  545.       scroll U
  546.       go this card
  547.       put "Pop a Card"
  548.     end if
  549.   end if
  550.   wait 60
  551.   hide msg
  552. end mouseUp
  553.  
  554.  
  555. -- part 14 (button)
  556. -- low flags: 00
  557. -- high flags: 8004
  558. -- rect: left=432 top=226 right=276 bottom=471
  559. -- title width / last selected line: 0
  560. -- icon id / first selected line: 4327 / 4327
  561. -- text alignment: 1
  562. -- font id: 204
  563. -- text size: 12
  564. -- style flags: 0
  565. -- line height: 16
  566. -- part name: Choose
  567. ----- HyperTalk script -----
  568. on mouseUp
  569.   put (item 1 of the clickLoc)-(item 1 of the rect of the target) into A
  570.   put (item 1 of the clickLoc)-(item 3 of the rect of the target) into B
  571.   put (item 2 of the rect of the target) - (item 2 of the clickLoc) - 7 into C
  572.   put (item 4 of the rect of the target) - (item 2 of the clickLoc) - 7 into D
  573.   put (item 1 of the clickLoc) - (item 1 of the Loc of me) into E
  574.   put (item 2 of the clickLoc) - (item 2 of the Loc of me) + 7 into F
  575.   if abs(E) < 4 then
  576.     if abs(F) < 4 then
  577.       repeat 2
  578.         flash 1
  579.         set icon of me to 4326
  580.         flash 1
  581.         set icon of me to 4327
  582.       end repeat
  583.       wait 60
  584.       hide msg
  585.       exit mouseUp
  586.     end if
  587.   end if
  588.   if (A < abs(B)) then
  589.     if (abs(C) < D) then
  590.       set icon of me to 4325
  591.       set icon of me to 4327
  592.       scroll D
  593.       go this card
  594.       put "Go to the HomeCard"
  595.     else if (abs(C) > D) then
  596.       set icon of me to 4324
  597.       set icon of me to 4327
  598.       scroll R
  599.       go to this card
  600.       put "Go to the Next Card"
  601.     end if
  602.   end if
  603.   if (A > abs(B)) then
  604.     if (abs(C) < D) then
  605.       set icon of me to 4322
  606.       set icon of me to 4327
  607.       scroll L
  608.       go to this card
  609.       put "Go to the Prev Card"
  610.     else if (abs(C) > D) then
  611.       set icon of me to 4323
  612.       set icon of me to 4327
  613.       scroll U
  614.       go this card
  615.       put "Pop a Card"
  616.     end if
  617.   end if
  618.   wait 60
  619.   hide msg
  620. end mouseUp
  621.  
  622.  
  623. -- part 21 (button)
  624. -- low flags: 00
  625. -- high flags: E004
  626. -- rect: left=93 top=311 right=327 bottom=152
  627. -- title width / last selected line: 0
  628. -- icon id / first selected line: 0 / 0
  629. -- text alignment: 1
  630. -- font id: 204
  631. -- text size: 12
  632. -- style flags: 0
  633. -- line height: 16
  634. -- part name: Buttons
  635. ----- HyperTalk script -----
  636. on mouseUp
  637.   set hilite of me to true
  638.   doMenu short name of me
  639. end mouseUp
  640.  
  641.  
  642.  
  643. -- part contents for background part 56
  644. ----- text -----
  645. multi-icon buttons
  646.  
  647. -- part contents for background part 78
  648. ----- text -----
  649. Prev Card: pushbuttons and switches
  650.  
  651. -- part contents for background part 79
  652. ----- text -----
  653. Next Card: the controls cultivator
  654.  
  655. -- part contents for card part 2
  656. ----- text -----
  657.  ‚İ     Ô¨Å    ≈∏     ‚Ǩ     ‚ÅÑ    Ô¨Ç    ‚Äπ    
  658. Help  First  Prev  Home  Next  Last  Pop
  659.  
  660. -- part contents for card part 3
  661. ----- text -----
  662. fi
  663.  ≈∏
  664.  ‚Ǩ
  665.  ‚ÅÑ
  666.  Ô¨Ç
  667.  ‚Äπ
  668.  ‚İ
  669.  
  670. -- part contents for card part 4
  671. ----- text -----
  672. ԨŠ  First
  673.  ≈∏   Prev
  674.  ‚Ǩ   Home
  675.  ‚ÅÑ   Next
  676.  Ô¨Ç   Last
  677.  ‚Äπ     Pop
  678.  ‚İ    Help
  679.  
  680. -- part contents for background part 108
  681. ----- text -----
  682. Open Aplication
  683. Organizational Chart
  684. OverLoad
  685.  
  686. -- part contents for background part 67
  687. ----- text -----
  688. Mouse Location:
  689.  
  690. -- part contents for background part 68
  691. ----- text -----
  692. 112,88
  693.  
  694. -- part contents for background part 82
  695. ----- text -----
  696. Free Space:
  697.  
  698. -- part contents for background part 83
  699. ----- text -----
  700. 73.00 K